#ifndef __LOOP_QUEUE_H__
#define __LOOP_QUEUE_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define N 5
typedef struct _Loop{
    int front;
    int rear;
    int loop[N];
}loop_t;

int create_queue(loop_t **p);
int clean_queue(loop_t *p);
int destroy_queue(loop_t **p);
int is_full(loop_t *p);
int push_queue(loop_t *p, int num);
int is_empty(loop_t *p);
int pop_queue(loop_t *p, int *buff);
int print_queue(loop_t *p);


#endif